<?php
require_once '../includes/functions.inc.php';
$filename = $_GET['image'];
get_tif_files("../img", $filename);
//header("Content-type: image/tiff");  
//header("Content-Disposition: attachment; filename=".$filename);
//readfile("../img/".$filename);
$filename = iconv("gbk","utf-8",$filename);
header("Location: http://localhost/little/img/$filename");
?>